package com.jacob.androidframe.base;

import java.util.ArrayList;
import java.util.List;

import android.support.v4.view.PagerAdapter;
import android.view.View;

public abstract class AdapterPagerBase<M> extends PagerAdapter
{
	private List<M> mList;
	
	public AdapterPagerBase()
	{
		mList = new ArrayList<M>();
	}
	public AdapterPagerBase(List<M> pList)
	{
		mList = new ArrayList<M>(pList);
	}

	@Override
	public int getCount()
	{
		return mList.size();
	}

	@Override
	public boolean isViewFromObject(View view, Object object)
	{
		return false;
	}

}
